<template>
  <div class="wrap">
    <header>
      <span @click="go()">&lt;</span>
      <p>精彩直播回放</p>
    </header>
    <main>
      <div>
        <video
          src="https://mp4.vjshi.com/2021-06-23/6e457e96362f4eb38f5e46004f29be19.mp4"
          width="375"
          height="240"
          controls
        ></video>
        <h3>{{list.introduce}}</h3>
      </div>
    </main>
  </div>
</template>


<script>
import axios from "../../utils/request";
export default {
  data() {
    return {
      list: []
    };
  },
  created() {
    this.detailList();
  },
  methods: {
    go() {
      this.$router.go(-1);
    },

    detailList() {
      axios({
        url: "/api/detail",
        method: "post",
        data: this.$route.params
      }).then(res => {
        console.log(res);
        this.list = res.data.data;
      });
    }
  }
};
</script>

<style lang="scss" scoped>
.wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
header {
  width: 100%;
  height: 50px;
  display: flex;
  line-height: 50px;
  align-items: center;
  background: rgb(56, 121, 240);
  padding: 15px;
  color: #fff;
  p {
    padding-left: 38%;
  }
}
main {
  flex: 1;
  overflow-y: scroll;
}
</style>